package com.example.farmeri.ui.test;

import android.os.Bundle;


import androidx.appcompat.app.AppCompatActivity;

import com.example.farmeri.R;
import com.github.mikephil.charting.charts.LineChart;

import java.util.HashMap;
import java.util.Map;
import java.util.Random;

import butterknife.BindView;
import butterknife.ButterKnife;

public class RecycleViewActivity extends AppCompatActivity {

    @BindView(R.id.test_chart)
    LineChart lineChart;


    Map<Integer,Float > temperatureData;
    Map<Integer,Float > humidityData;
    Map<Integer,Float > sunData;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_recycle_view);
        ButterKnife.bind(this);
    }

    private Map<Integer, String> getDate (){
        Map<Integer, String> map = new HashMap<>();
        map.put(0, "");
        map.put(8, "");
        for (int i = 1; i <= 7; i++) {
            map.put(i, "5.1" + i);
        }
        return map;
    }

    private Map<Integer,Float> getTemperatureData() {
        Map<Integer,Float> map = new HashMap<>();
        map.put(0, 0f);
        map.put(8, 0f);
        for (int i = 1; i <= 7; i++) {
            map.put(i, (float) ((new Random()).nextInt(30)));
        }
        return map;
    }

    private Map<Integer,Float> getHumidityData() {
        Map<Integer, Float> map = new HashMap<>();
        map.put(0, 0f);
        map.put(8, 0f);
        for (int i = 1; i <= 7; i++) {
            map.put(i, (float) ((new Random()).nextInt(50)+20));
        }
        return map;
    }
    private Map<Integer, Float> getSunData (){
        Map<Integer, Float> map = new HashMap<>();
        map.put(0, 0f);
        map.put(8, 0f);
        for (int i = 1; i <= 7; i++) {
            map.put(i, (float) ((new Random()).nextInt(30)+20));
        }
        return map;
    }


}
